use iced::Element;
use iced::widget::{center, text};

fn main() -> iced::Result {
    iced::run(Hello::update, Hello::view)
}

#[derive(Default)]
struct Hello {}

impl Hello {
    // Updater
    fn update(&mut self, _msg: ()) {}

    // View
    fn view(&self) -> Element<()> {
        center(text("Hello World!").size(41)).into()
    }
}
